/*
 * strings_functions.c
 *
 *  Created on: 21/04/2013
 *      Author: dario
 */
#include "strings_functions.h"

int BuscarCaracter(int c) {
	int i=0;
	while(caracteresValidos[i]!=c)
	{
		i++;
	}
	return i;
}

int MyStrCmp(const char *src1, const char *src2)
{
    int i=0;
    while((src1[i]!='\0') || (src2[i]!='\0'))
    {
        if(BuscarCaracter(src1[i]) > BuscarCaracter(src2[i]))
            return 1;
        if(BuscarCaracter(src1[i]) <  BuscarCaracter(src2[i]))
            return -1;
        i++;
    }

    return 0;
}

